package io
{
	import flash.net.registerClassAlias;

	[Bindable]
	[RemoteClass(alias="com.yt.server.messaging.Packet")]
	public class Packet
	{
		public function Packet()
		{
		}
		
		private static var registed:Boolean = false;
		
		public static function registerClassAlias():void {
			if(registed == false) {
				flash.net.registerClassAlias("com.yt.server.messaging.Packet", Packet);
				registed = true;
			}
		}
		
		private var _id:String;
		
		private var _type:Number;
		
		private var _state:Number;
		
		private var _header:Object;
		
		private var _actionName:String;
		
		private var _method:String;
		
		private var _params:Array;
		
		private var _scopePath:String;//当前所在活动区
		
		private var _result:Object;
	
		public function get result():Object
		{
			return _result;
		}

		public function set result(value:Object):void
		{
			_result = value;
		}

		public function get scopePath():String
		{
			return _scopePath;
		}

		public function set scopePath(value:String):void
		{
			_scopePath = value;
		}

		public function get params():Array
		{
			return _params;
		}

		public function set params(value:Array):void
		{
			_params = value;
		}

		public function get method():String
		{
			return _method;
		}

		public function set method(value:String):void
		{
			_method = value;
		}

		public function get actionName():String
		{
			return _actionName;
		}

		public function set actionName(value:String):void
		{
			_actionName = value;
		}

		public function get header():Object
		{
			return _header;
		}

		public function set header(value:Object):void
		{
			_header = value;
		}

		public function get state():Number
		{
			return _state;
		}

		public function set state(value:Number):void
		{
			_state = value;
		}

		public function get type():Number
		{
			return _type;
		}

		public function set type(value:Number):void
		{
			_type = value;
		}

		public function get id():String
		{
			return _id;
		}

		public function set id(value:String):void
		{
			_id = value;
		}
	}
}